package org.jeecg.modules.inspection.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.inspection.entity.InspectionLine;
import org.jeecg.modules.inspection.entity.InspectionLineArea;
import org.jeecg.modules.inspection.mapper.InspectionLineMapper;
import org.jeecg.modules.inspection.service.IInspectionLineService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description: 巡检路线
 * @Author: jeecg-boot
 * @Date:   2019-09-20
 * @Version: V1.0
 */
@Service
public class InspectionLineServiceImpl extends ServiceImpl<InspectionLineMapper, InspectionLine> implements IInspectionLineService {
    @Autowired
    private InspectionLineMapper inspectionLineMapper;
    @Override
    public List<InspectionLineArea> selectLineArea(String lineId) {
        return inspectionLineMapper.selectLineArea(lineId);
    }

    @Override
    public List<InspectionLine> selectLineByUser(String userId,Integer type) {
        return inspectionLineMapper.selectLineByUser(userId,type);
    }

    @Override
    public String selectLineName(String lineId) {
        return inspectionLineMapper.selectLineName(lineId);
    }

    @Override
    public List<InspectionLine> exportList(InspectionLine inspectionLine, String officeStr) {
        return inspectionLineMapper.exportList(inspectionLine,officeStr);
    }
}
